package it.gma.torero.operator;

import it.gma.torero.operand.ComparationOperand;

public class GreaterEqualsOperator extends GreaterOperator {


	public GreaterEqualsOperator(ComparationOperand operand1, ComparationOperand operand2) {
		super(operand1, operand2);
	}

	public boolean evaluate() {
		OrOperator gteq = new GreaterOperator(operand1,operand2).or(new EqualsOperator(operand1, operand2));
		return gteq.evaluate();
	}

	@Override
	public String toString() {
		return operand1 + " >= " + operand2;
	}

}
